<?php
$this->load->view("header");
?>
<div id="main_content">
<div class="titlebar"><?= $title;?></div>
<!--The following table is for detailed book information-->
<?php
$this->load->view("bookdetail");
?>
<?php
if(isset($error)){
?>
  <font color="red" size="4"><?=$error?></font>
<?php
} ?>


 <form name="addwantedpost_form" id="addwantedpost_form"  method="post" action="<?=site_url()?>/post/do_addwantedpost">
        希望价格范围：<input type=text name="start_price" />到<input type=text name="end_price" />
        备注:<input type=text name="other"/>
        <br/>
        手机:<input type=text name="phone" value="<?=$userinfo->phone?>" />
         电子邮件:<input type=text name="email" value="<?=$userinfo->email?>" />
         QQ:<input type=text name="qq" value="<?=$userinfo->qq?>" />
        <input type="hidden" name="bookid" value="<?=$book->id?>"/>
        <input type="hidden" name="book_title" value="<?=$book->title?>"/>
        <input type="hidden" name="school_initials" value="<?=$userinfo->school_initials?>"/>
        <input type=submit  value="发布信息" />
 </form>

<?php
$this->load->view("footer");
?>